//package com.bbx.taxi.client.Service;
//
//import java.util.List;
//
//import org.json.JSONArray;
//import org.json.JSONException;
//import org.json.JSONObject;
//
//import com.bbx.api.gclient.GMsg;
//import com.bbx.api.gclient.Observer;
//import com.bbx.api.sdk.SDK;
//import com.bbx.api.sdk.model.base.BaseModel;
//import com.bbx.api.sdk.model.passanger.Token;
//import com.bbx.api.sdk.model.passanger.Return.Position;
//import com.bbx.api.sdk.model.passanger.Return.Jmsg.Jmsg;
//import com.bbx.api.sdk.net.base.JsonBuild;
//import com.bbx.api.util.SharedPreEncryptUtil;
//import com.bbx.taxi.client.MyApplication;
//import com.bbx.taxi.client.Bean.MyMesssage;
//import com.bbx.taxi.client.Bean.Online;
//import com.bbx.taxi.client.DB.JmsgDB;
//import com.bbx.taxi.client.Util.DateFormat;
//import com.bbx.taxi.client.config.Config;
//
//import android.app.ActivityManager;
//import android.app.ActivityManager.RunningAppProcessInfo;
//import android.app.Service;
//import android.content.Context;
//import android.content.Intent;
//import android.os.Binder;
//import android.os.IBinder;
//
//public class CallbackService extends Service implements Observer {
//	private static CallbackService mInstance = null;
//	private MyApplication mMyApplication;
//	public static CallbackService getInstance() {
//		return mInstance;
//	}
//
//	private final IBinder binder = new MyBinder();
//
//	public class MyBinder extends Binder {
//		public CallbackService getService() {
//			return CallbackService.this;
//		}
//	}
//
//	@Override
//	public IBinder onBind(Intent intent) {
//		// TODO Auto-generated method stub
//		return binder;
//	}
//
//	@Override
//	public void onCreate() {
//		super.onCreate();
//		mInstance = this;
//		mMyApplication = MyApplication.getInstance();
//		// 为本类添加为可推送类
//		SDK.GetSDK().addObs(this);
//	}
//
//   @Override
//public void onDestroy() {
//	   SDK.GetSDK().removeObs(this);
//	super.onDestroy();
//}
//	@Override
//	public int onNotify(GMsg notify) {
//		if (notify == null) {
//			return 0;
//		}
//		MyMesssage mMyMesssage=new MyMesssage();
//		mMyMesssage.onAllMessage(this, notify, mMyApplication);
//		return 0;
//	}
//}
